package com.itheima.service.impl;

import com.itheima.dao.UserMapper;
import com.itheima.pojo.User;
import com.itheima.service.UserService;
import com.itheima.utils.MybatisUtils;

public class UserServiceImpl implements UserService {
    @Override
    public User login(String username, String password) {
        UserMapper userMapper = MybatisUtils.getProxyMapper(UserMapper.class);
        User user = userMapper.login(username, password);
        return user;
    }
}
